<?php

header("Content-type:text/plain; charset=UTF-8");
$a = "123";
$c = include './db.php';

function add($js, $bjs)
{
    return $js + $bjs;
}

$aa = "而到了电话安多佛大佛安东很骄傲大佛寺电话哦啊的佛奥的佛啊导航啊";
//
//$abc = explode('佛', $aa);
//var_dump($abc);
//echo "\r\n";
//
//$abc_str = join(',', $abc);
//echo $abc_str;

//echo mb_strpos($aa,"佛");

//echo mb_substr($aa, 3, 3);

//echo iconv("utf-8", "gbk", $aa);

//var_dump(pathinfo("./index5.html"));
//copy("./index2.html", "./index5.html");

$html = file_get_contents("./index5.html");

file_put_contents("./index5.html", $html . "你大爷的");

echo "\r\n";
//$count = 3;
//echo str_replace("佛", "光头", $aa, $count);
//
//echo "\r\n";
//echo $count;
//echo "\r\n";
// $aa = "     ASDFADF<a>你点我呀</a>AS DFASDF     ";
//echo $aa;
//echo "\r\n";
//echo strip_tags($aa);
//echo "\r\n";

//echo strtolower($aa);
//
//$aa = strtolower($aa);
//echo "\r\n";
//
//echo strtoupper($aa);
//
//echo "\r\n";
//echo md5($aa);
//echo "\r\n";


//
//var_dump($aa == "ASDFADFASDFASDF");
//echo "\r\n";
//var_dump(trim($aa) == "ASDFADFASDFASDF");
//$f_str = "姓名：%s 联系电话：%s 年龄: %u 账户余额:%F";
//
//// 不定项参数
//echo sprintf($f_str, '张三', '13112341234', 12,100.38);
//echo "\r\n";


//echo strlen($aa);// 按照字节算  字节数 : 3;编码：UTF-8
//echo "\r\n";
//echo mb_strlen($aa);// 按照字符集算的字符
//echo "\r\n";
// int      add   (int $js , int $bjs )
// 返回值  函数名   参数列表

echo add(1, 2);

echo "\r\n";

var_dump($c);
echo "\r\n";

// 命名污染问题   可以是用 类 Class 解决
echo $a;


$name = $_GET["name"];
echo "asdfa";

if (!isset($name)) {
    exit("请输入用户名");
}

echo "21342313";
